﻿@model RightControl.Model.AmazonMeta
@using RightControl.Model;
@{
    ViewBag.Title = "亚马逊商品详情";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutForm.cshtml";
}

<style type="text/css">
    .layui-form-label {
        width: 100px;
    }

    .layui-input-block {
        margin-left: 130px;
    }

    .layui-textarea {
        min-height: 90px;
    }

    .selectItem-width {
        width: 120px;
    }
</style>
<form id="form" class="layui-form" action="/DataSrv/PlatForm/UpdateAmazonMeta" method="post">
    <input type="hidden" value="@Model.Id" name="Id" />
    <input type="hidden" value="@Model.SalePrice" name="SalePrice" />
    <input type="hidden" value="@Model.Price" name="Price" />
    @*<input type="hidden" value="@Model.Inventory" name="Inventory" />*@
    <input type="hidden" value="@Model.ImageUrl" name="ImageUrl" />
    <input type="hidden" value="@Model.ProductSku" name="ProductSku" />
    <input type="hidden" value="@Model.ProductId" name="ProductId" />
    <input type="hidden" value="@Model.CreateBy" name="CreateBy" />
    <input type="hidden" value="@Model.CreateOn" name="CreateOn" />

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">基本信息</div>
                    <div class="layui-card-body" pad15>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="fRed">*</span>站点:</label>
                            <div class="layui-inline">
                                <div class="layui-input-inline">
                                    <select id="selCountryCode" name="CountryCode">
                                        <option value="">请选择</option>
                                        <option value="US" selected=""> 美国 </option>
                                        <option value="JAP"> 日本 </option>
                                        <option value="CAN"> 加拿大 </option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="fRed">*</span>产品分类:</label>
                            <div class="layui-inline">
                                <div class="layui-input-inline">
                                    <select id="selCatalog" name="Catalog">
                                        <option value="">请选择</option>
                                        <option value="Dresses" selected=""> Dresses </option>
                                        <option value="Shoes"> Shoes </option>
                                        <option value="Skirts"> Skirts </option>
                                        <option value="Jeans"> Jeans </option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="fRed">*</span>产品标题:</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" name="Title" value="@Model.Title">
                            </div>
                        </div>

            

                    </div>
                </div>
                
                <div class="layui-card">
                    <div class="layui-card-header">描述详情</div>
                    <div class="layui-card-body" pad15>
                        <div class="layui-form-item">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <td><label class="layui-form-label">产品描述：</label></td>
                                        <td style="width:90%" colspan="3">
                                            <textarea placeholder="请填写产品的详细描述，多个网址用Enter换行" class="layui-textarea" rows="3" autocomplete="off" name="Description">@Model.Description</textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2"><label class="layui-form-label">产品卖点：</label></td>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="BulletPoints1" placeholder="Bullet Point(请输入100个以内字符)" value="@Model.BulletPoints1">
                                        </td>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="BulletPoints2" placeholder="Bullet Point(请输入100个以内字符)" value="@Model.BulletPoints2">
                                        </td>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="BulletPoints3" placeholder="Bullet Point(请输入100个以内字符)" value="@Model.BulletPoints3">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="BulletPoints4" placeholder="Bullet Point(请输入100个以内字符)" value="@Model.BulletPoints4">
                                        </td>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="BulletPoints5" placeholder="Bullet Point(请输入100个以内字符)" value="@Model.BulletPoints5">
                                        </td>
                                        <td style="width:30%"></td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2"><label class="layui-form-label">关键词：</label></td>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="KeyWord1" placeholder="Search Terms(请输入1000以内个字符)" value="@Model.KeyWord1">
                                        </td>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="KeyWord2" placeholder="Search Terms(请输入1000以内个字符)" value="@Model.KeyWord2">
                                        </td>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="KeyWord3" placeholder="Search Terms(请输入1000以内个字符)" value="@Model.KeyWord3">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="KeyWord4" placeholder="Search Terms(请输入1000以内个字符)" value="@Model.KeyWord4">
                                        </td>
                                        <td style="width:30%">
                                            <input type="text" class="layui-input" name="KeyWord5" placeholder="Search Terms(请输入1000以内个字符)" value="@Model.KeyWord5">
                                        </td>
                                        <td style="width:30%"></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="submitForm" id="submitForm">确认保存</button>
                        <div class="div-msg fl" style="float:left;">@ViewBag.Msg</div>
                    </div>
                </div>
            </div>
        </div>


    </div>

</form>

<script type="text/javascript">
    layui.use(['form','laydate'], function () {
        var laydate = layui.laydate;
        var form = layui.form;
        //日期范围
        laydate.render({
            elem: '#promoteDate'
          , range: true
        });

        submitForm(form, "更新成功"); //监听提交
    });


    //$("#promoteDate").value

</script>